import request from '@/axios'

//参数配置列表
export const getParameterConfigApi = (params: any) => {
  return request.get({ url: '/admin/systemConfig', params })
}
//新增参数配置
export const createParameterConfigApi = (data): Promise<IResponse> => {
  return request.post({ url: '/admin/systemConfig', data })
}
//更新参数配置
export const editParameterConfigApi = (id: string | number, data): Promise<IResponse> => {
  return request.put({ url: `/admin/systemConfig/${id}`, data })
}
//删除参数配置
export const delParameterConfigApi = (id: string | number, data?): Promise<IResponse> => {
  return request.delete({ url: `/admin/systemConfig/${id}`, data })
}
